export default {
  allMoney(state) {
    let allmoney = 0
    state.car.forEach((item) => {
      if (!item.selected) {
        allmoney += item.num * item.price
      }
    })
    return (state.allmoney = allmoney)
  },
  allCount(state) {
    let allcount = 0
    state.car.forEach((item) => {
      if (!item.selected) {
        allcount += item.num
      }
    })
    return (state.allcount = allcount)
  }
}
